import request from '@/utils/request'

export const companyDepartment = () => {
  return request({
    url: '/company/department'
  })
}
export const sysUserSimple = () => {
  return request({
    url: '/sys/user/simple'
  })
}
// 获取新增列表数据
export const companyDepartmentPost = (data) => {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
// 删除部门列表数据
export const companyDepartmentDelte = (id) => {
  return request({
    url: `/company/department/${id}`,
    method: 'DELETE'
  })
}

// 修改部门
export const companyDepartmentPut = (data) => {
  return request({
    url: '/company/department/' + data.id,
    method: 'PUT',
    data
  })
}
